using System;
using System.Text;

namespace OVS.BusinessObjects
{
	[Serializable()]
	public partial class Image_Haar
	{
		private int _imha_id;

		public int imha_id
		{
			get { return _imha_id; }
			set { _imha_id = value; }
		}

		private string _imha_fn;

		public string imha_fn
		{
			get { return _imha_fn; }
			set { _imha_fn = value; }
		}

		private string _imha_label;

		public string imha_label
		{
			get { return _imha_label; }
			set { _imha_label = value; }
		}

		private Nullable<int> _imha_height;

		public Nullable<int> imha_height
		{
			get { return _imha_height; }
			set { _imha_height = value; }
		}

		private Nullable<int> _imha_width;

		public Nullable<int> imha_width
		{
			get { return _imha_width; }
			set { _imha_width = value; }
		}

		private string _imha_desc;

		public string imha_desc
		{
			get { return _imha_desc; }
			set { _imha_desc = value; }
		}

		private Nullable<Double> _imha_scaleFactor;

		public Nullable<Double> imha_scaleFactor
		{
			get { return _imha_scaleFactor; }
			set { _imha_scaleFactor = value; }
		}

		private Nullable<Double> _imha_minNeighbors;

		public Nullable<Double> imha_minNeighbors
		{
			get { return _imha_minNeighbors; }
			set { _imha_minNeighbors = value; }
		}

		public Image_Haar()
		{ }

		public Image_Haar(int imha_id,string imha_fn,string imha_label,Nullable<int> imha_height,Nullable<int> imha_width,string imha_desc,Nullable<Double> imha_scaleFactor,Nullable<Double> imha_minNeighbors)
		{
			this.imha_id = imha_id;
			this.imha_fn = imha_fn;
			this.imha_label = imha_label;
			this.imha_height = imha_height;
			this.imha_width = imha_width;
			this.imha_desc = imha_desc;
			this.imha_scaleFactor = imha_scaleFactor;
			this.imha_minNeighbors = imha_minNeighbors;
		}

		public override string ToString()
		{
			return "imha_id = " + imha_id.ToString() + ",imha_fn = " + imha_fn + ",imha_label = " + imha_label + ",imha_height = " + imha_height.ToString() + ",imha_width = " + imha_width.ToString() + ",imha_desc = " + imha_desc + ",imha_scaleFactor = " + imha_scaleFactor.ToString() + ",imha_minNeighbors = " + imha_minNeighbors.ToString();
		}

		public partial class imha_idComparer : System.Collections.Generic.IComparer<Image_Haar>
		{
			public SorterMode SorterMode;
			public imha_idComparer()
			{ }
			public imha_idComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<Image_Haar> Membres
			int System.Collections.Generic.IComparer<Image_Haar>.Compare(Image_Haar x, Image_Haar y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.imha_id.CompareTo(x.imha_id);
				}
				else
				{
					return x.imha_id.CompareTo(y.imha_id);
				}
			}
			#endregion
		}
		public partial class imha_fnComparer : System.Collections.Generic.IComparer<Image_Haar>
		{
			public SorterMode SorterMode;
			public imha_fnComparer()
			{ }
			public imha_fnComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<Image_Haar> Membres
			int System.Collections.Generic.IComparer<Image_Haar>.Compare(Image_Haar x, Image_Haar y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.imha_fn.CompareTo(x.imha_fn);
				}
				else
				{
					return x.imha_fn.CompareTo(y.imha_fn);
				}
			}
			#endregion
		}
		public partial class imha_labelComparer : System.Collections.Generic.IComparer<Image_Haar>
		{
			public SorterMode SorterMode;
			public imha_labelComparer()
			{ }
			public imha_labelComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<Image_Haar> Membres
			int System.Collections.Generic.IComparer<Image_Haar>.Compare(Image_Haar x, Image_Haar y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.imha_label.CompareTo(x.imha_label);
				}
				else
				{
					return x.imha_label.CompareTo(y.imha_label);
				}
			}
			#endregion
		}
		public partial class imha_descComparer : System.Collections.Generic.IComparer<Image_Haar>
		{
			public SorterMode SorterMode;
			public imha_descComparer()
			{ }
			public imha_descComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<Image_Haar> Membres
			int System.Collections.Generic.IComparer<Image_Haar>.Compare(Image_Haar x, Image_Haar y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.imha_desc.CompareTo(x.imha_desc);
				}
				else
				{
					return x.imha_desc.CompareTo(y.imha_desc);
				}
			}
			#endregion
		}
	}
}
